/**
 * @module vue-demo
 * @desc 详情 store
 * @author ervinewell on 2017/4/7.
 */

import * as types from './types';

export default {
  state: {
    name: '',
    grade: '',
    desc: '',
  },
  actions: {
    [types.CHANGE_PARAMS]({ state }, { key, value }) {
      state[key] = value;
    },
  },
};
